// 接收来自后端的WebSocket通信  显示当前时间戳
export default {
    state: {
        currentTimeStamp: null, predictionList: [],//未来的时间帧
    }, getters: {}, mutations: {
        setCurrentTimeStamp(state, newCurrentTimeStamp) {
            state.currentTimeStamp = newCurrentTimeStamp
        }, setPredictionList(state, newPredictionList) {
            state.predictionList = newPredictionList
        }
    }, actions: {
        SETCURRENTTIMESTAMP(context, newCurrentTimeStamp) {
            context.commit("setCurrentTimeStamp", newCurrentTimeStamp)
        }, SETPREDICTIONLIST(context, newPredictionList) {
            context.commit("setPredictionList", newPredictionList)
        }
    }
}